﻿#include<iostream>
class Role {
	int* ary;
public:
	Role() {
		ary = new int[100];
		std::cout << "\n类被创建！";
	}

	~Role() {//析构函数
		delete[] ary;
		std::cout << "\n类被销毁！";
	}
	~Role() = default;//默认析构函数
};
int main() {
	Role user;
	int a{ 1 };
	while (a) {
		Role p;
		std::cin >> a;
	}
	std::cout << "\nending!";
}